package com.itheima.objectstream;

import com.itheima.domain.Student;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;

public class Demo02 {

    public static void main(String[] args) throws IOException, ClassNotFoundException {

        ObjectInputStream ois = new ObjectInputStream(new FileInputStream("day13\\student.txt"));
        Student s = (Student) ois.readObject();
        System.out.println(s);
        ois.close();

    }
}
